<p><a href="http://example.com" title="lorem [ipsum] dolor &lt;sit&gt; amet">foo</a></p>

<p><img src="http://example.com/foo.gif" alt="fooimg" title="lorem [ipsum] dolor &lt;sit&gt; amet" /></p>

<p><img src="http://example.com/foo.gif" alt="&quot;this&quot; [is] my &lt;alt&gt; text" title="lorem [ipsum] dolor &lt;sit&gt; amet" /></p>

<p><a href="http://example.com" title="lorem [ipsum] dolor &lt;sit&gt; amet">bar</a></p>

<p><img src="http://example.com/bar.png" alt="barimg" title="lorem [ipsum] dolor &lt;sit&gt; amet" /></p>
